@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal"  id="wzQuestionInfoForm">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-9">
                            <#input id="question" name="问题" />
                            <#select id="type" name="问题类型" >
                                <option value="">请选择</option>
                                <option value="1">调查问卷</option>
                                <option value="2">广告提问</option>
                                <option value="3">商家问卷</option>
                            </#select>
                            <#select id="questionType" name="问题形式" underline="true">
                                <option value="1">文字单选</option>
                                <option value="2">图文单选</option>
                                <!--<option value="3">多选</option>-->
                            </#select>
                </div>

                <!--<div class="col-sm-6">-->
                            <!--<#select id="status" name="状态" underline="true">-->
                                <!--<option value="0">不启用</option>-->
                                <!--<option value="1">启用</option>-->
                            <!--</#select>-->
                <!--</div>-->
            </div>
            <div class="col-sm-12" id="itemsArea">
                <div class="form-group" >
                <div class="col-sm-2" style="padding-left:8%">
                <#button btnCss="info" name="增加问题" icon="fa-plus" clickFun="WzQuestionInfoDlg.addItem()"/>
                </div>
                </div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="WzQuestionInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="WzQuestionInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/template" id="itemTemplate">
   <!-- 广告问题-->
    <div class="form-group" name="dictItem" id="dictItem" style="margin-left: -1%">
        <label class="col-sm-2 control-label">答案</label>
        <div class="col-sm-2">
            <input class="form-control" type="text" name="itemNum" id="answer" style="width: 420px;"  maxlength="30">
        </div>
        <label class="col-sm-1 control-label" style="margin-left: 300px;">正确</label>
            <input type="radio" name="answer" id="choice"  style="margin-top: 10px;">
        <div class="col-sm-4" style="margin-left:85%;margin-top: -3.5%;">
            <#button btnCss="danger"  name="删除" id="cancel" icon="fa-remove" clickFun="WzQuestionInfoDlg.deleteItem(event)"/>
        </div>
    </div>
</script>
<script type="text/template" id="itemTemplate_1">
    <!-- 调查、商家问卷-->
    <div class="form-group" name="dictItem" id="dictItem_1" style="margin-left: -1%">
        <label class="col-sm-2 control-label">答案</label>
        <div class="col-sm-2">
            <input class="form-control" type="text" name="itemNum" id="answer_1"style="width: 420px;"  maxlength="30">
        </div>
        <div class="col-sm-4" style="margin-left:75%; margin-top: -3.5%;">
            <#button btnCss="danger"  name="删除" id="cancel" icon="fa-remove" clickFun="WzQuestionInfoDlg.deleteItem(event)"/>
        </div>
    </div>
</script>
<script src="${ctxPath}/static/modular/wz/wzQuestion/wzQuestion_info.js"></script>
@}
